package cc.eddic.pratice.programmingparadigms.nginxlog;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * PV 和 UV
 */
@Getter
@ToString
@AllArgsConstructor
public class PageViewsAndUniqueVisitors {
    /**
     * PV 页面访问量
     */
    long pageViews;
    /**
     * UV 唯一访客数
     */
    long uniqueVisitors;

    public PageViewsAndUniqueVisitors() {
        this.pageViews = getPageViews();
        this.uniqueVisitors = getUniqueVisitors();
    }
}
